<template>
  <div class="user-info-container">
    <div class="user-title">账号设置</div>
    <div class="user-info">
      <img class="avatar" src="@/assets/imgs/avatar.jpg" alt="" />
      <div class="info">Yin.Shi，欢迎您</div>
    </div>
    <div class="user-tip">用户信息</div>
    <div class="user-boxs">
      <div class="box">
        <i class="iconfont icon-weixin"></i>
        <div>绑定微信：</div>
        <div class="name">xxx</div>
      </div>
      <div class="box">
        <i class="iconfont icon-shouji"></i>
        <div>绑定手机：</div>
        <div class="name">13962962529</div>
      </div>
    </div>
    <div class="user-tip">账户积分</div>
    <div class="user-boxs">
      <div class="box">
        <div>积分余额：</div>
        <div class="name">xxx</div>
      </div>
      <div class="box">
        <div>VIP过期时间：</div>
        <div class="name">13962962529</div>
      </div>
    </div>
    <div class="user-tip">充值记录</div>
    <div class="user-table">
      <el-row class="table-item" :gutter="20">
        <el-col :span="3">日期</el-col>
        <el-col :span="5">交易方式</el-col>
        <el-col :span="5">金额</el-col>
        <el-col :span="6">用途</el-col>
      </el-row>
      <el-row class="table-item" :gutter="20">
        <el-col :span="3">2020/03/12</el-col>
        <el-col :span="5">微信</el-col>
        <el-col :span="5">100</el-col>
        <el-col :span="6">啊的大幅答复的噶啊</el-col>
      </el-row>
      <el-row
        v-for="item in payList"
        :key="item.id"
        class="table-item"
        :gutter="20"
      >
        <el-col :span="3">{{ item.createTime | dateFormat }}</el-col>
        <el-col :span="5">微信</el-col>
        <el-col :span="5">￥{{ item.totalFee | amountFormat }}</el-col>
        <el-col :span="6">{{ item.title }}</el-col>
      </el-row>
    </div>
    <div class="user-btn">
        退出登录/切换账号
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      payList: [],
    };
  },
};
</script>

<style lang="less" scoped>
.user-info-container {
  width: 950px;
  margin: 30px auto;
  box-sizing: border-box;
  padding-bottom: 40px;
  .user-title {
    font-size: 20px;
    width: 100%;
    font-weight: 600;
    color: #141414;
    text-align: left;
  }
  .user-info {
    padding: 30px 0;
    text-align: center;
    border-bottom: 1px solid #f3f3f3;
    .avatar {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        margin: 0 auto;
    }
    .info {
        font-size: 14px;
        font-weight: 400;
        color: #141414;
        margin-top: 9px;
    }
  }
  .user-tip {
    padding: 40px 0 15px 0;
    box-sizing: border-box;
    font-size: 15px;
    font-weight: 400;
    color: #141414;
    display: inline-block;
    margin-left: 10px;
    margin-right: 10px;
    text-align: left;
  }
  .user-boxs {
    background: #ffffff;
    border-radius: 6px;
    opacity: 1;
    border: 1px solid #f3f3f3;
    width: 100%;
    padding: 0 24px;
    box-sizing: border-box;
    .box {
        padding: 30px 0;
        display: flex;
        align-items: center;
        font-size: 14px;
        font-weight: 400;
        color: #141414;
        i {
            margin-right: 8px;
        }
        .icon-weixin {
            color: #01b74d;
        }
        .name {
            color: #595959;
            margin-left: 10px;
        }
        &:first-of-type{
            border-bottom: 1px solid #f3f3f3;
        }
    }
  }
  .user-table {
      width: 100%;
      font-size: 13px;
      font-weight: 400;
      color: #141414;
      text-align: center;
      .table-item {
        margin-bottom: 20px;
      }
    }
  .user-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
    cursor: pointer;
    width: 300px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid #E6E6E6;
    font-size: 13px;
    font-weight: 400;
    color: #595959;
    margin-top: 60px;
    &:hover {
        background-color: #e6e6e6;
        color: #000;
    }
  }
}
</style>
